package cn.bdqn.domain;

import java.io.Serializable;

/**
 * 派货单实体类
 * @author dkj
 */
public class Delivery implements Serializable {


    /**
     * id
     */
    private Integer id;

    /**
     * 发货单对象id
     */
    private Integer sendFreightId;

    /**
     * 发货单对象
     */
    private SendFreight sendFreight;


    /**
     * 司机对象id
     */
    private Integer driverId;

    /**
     * 司机对象
     */
    private Driver driver;

    /**
     * 车辆对象id
     */
    private Integer vehicleId;

    /**
     * 车辆对象
     */
    private Vehicle vehicle;


    /**
     * 路线对象id
     */
    private Integer routeId;

    /**
     * 路线对象
     */
    private Routes route;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public SendFreight getSendFreight() {
        return sendFreight;
    }

    public void setSendFreight(SendFreight sendFreight) {
        this.sendFreight = sendFreight;
    }

    public Driver getDriver() {
        return driver;
    }

    public void setDriver(Driver driver) {
        this.driver = driver;
    }

    public Vehicle getVehicle() {
        return vehicle;
    }

    public void setVehicle(Vehicle vehicle) {
        this.vehicle = vehicle;
    }

    public Routes getRoute() {
        return route;
    }

    public void setRoute(Routes route) {
        this.route = route;
    }

    public Integer getSendFreightId() {
        return sendFreightId;
    }

    public void setSendFreightId(Integer sendFreightId) {
        this.sendFreightId = sendFreightId;
    }

    public Integer getDriverId() {
        return driverId;
    }

    public void setDriverId(Integer driverId) {
        this.driverId = driverId;
    }

    public Integer getVehicleId() {
        return vehicleId;
    }

    public void setVehicleId(Integer vehicleId) {
        this.vehicleId = vehicleId;
    }

    public Integer getRouteId() {
        return routeId;
    }

    public void setRouteId(Integer routeId) {
        this.routeId = routeId;
    }

    @Override
    public String toString() {
        return "Delivery{" +
                "id=" + id +
                ", sendFreightId=" + sendFreightId +
                ", sendFreight=" + sendFreight +
                ", driverId=" + driverId +
                ", driver=" + driver +
                ", vehicleId=" + vehicleId +
                ", vehicle=" + vehicle +
                ", routeId=" + routeId +
                ", route=" + route +
                '}';
    }
}
